# # /bin/bash
# export DATASET_HOME=/home/neu/hutao/2019-01-10-11-46-21-radar-oxford-10k
# # export DATASET_HOME=/home/neu/hutao/2019-01-10-11-46-21-radar-oxford-10k/test
export HISTORY_NUMBER=2
export PROCESSED_HOME=$DATASET_HOME
export USED_DATASET=$PROCESSED_HOME/processed
export MVDNET_HOME=/home/aero/mvdnet/MVDNet
export CONFIG_HOME=$MVDNET_HOME/configs
export OUTPUT_PATH_STR="OUTPUT_DIR: ./output-h1-0/mvdnet/"
function gen_train_cfg(){
    cp $CONFIG_HOME/train_cfg_h$HISTORY_NUMBER.yaml $CONFIG_HOME/train_cfg_h$HISTORY_NUMBER$1.yaml
    echo "OUTPUT_DIR: ./h2_weight/output-h$HISTORY_NUMBER$1/mvdnet/" >> $CONFIG_HOME/train_cfg_h$HISTORY_NUMBER$1.yaml
}
# # echo "****$OUTPUT_PATH_STR*****"

# function eval_cfg_gen(){
#     echo "_BASE_: "./train_cfg_h$HISTORY_NUMBER$1.yaml"" >> eval_cfg_h$HISTORY_NUMBER$1.yaml
#     cat eval_tmp.yaml >> eval_cfg_h$HISTORY_NUMBER$1.yaml
#     echo "  WEIGHTS: "./h2_weight/output-h$HISTORY_NUMBER$1/mvdnet/model_final.pth"" >> eval_cfg_h$HISTORY_NUMBER$1.yaml

# }

gen_train_cfg "-0"
gen_train_cfg "+1"
gen_train_cfg "-1"
gen_train_cfg "+2"
gen_train_cfg "-2"
gen_train_cfg "+5"
gen_train_cfg "-5"

# TMP_STR=`tail dir_gen.sh -n 1`
# TMP_STR=`head dir_gen.sh -n 2`
# echo $TMP_STR
# mail -s "test" neuhutao@gmail.com <<< "$TMP_STR"